<%-- 
    Document   : tinHot
    Created on : Mar 5, 2012, 11:55:03 PM
    Author     : huanht
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml"  prefix="x" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link rel="stylesheet" type="text/css" href="style.css" title="style"/>
        <link rel="stylesheet" type="text/css" href="popup.css" title="style"/>
        <script type="text/javascript" src="script/common.js"></script>
        <script type="text/javascript" src="script/search.js"></script>
        <script type="text/javascript" src="script/tab.js"></script>
        <script type="text/javascript" src="script/popup.js"></script>
        <script type="text/javascript" src="script/checkRegister.js"></script>
    </head>
    <body>
        <jsp:include page="popupDangNhap.jsp" flush="true"/>
        <jsp:include page="popupDangki.jsp" flush="true"/>
        <jsp:include page="lienhe.jsp" flush="true"/>
        <div id="userinfo" style="margin-left: 900px">
            <logic:present name="LoginActionForm" property="nguoiDung">
                Xin chào, ${sessionScope.LoginActionForm.nguoiDung.ho} ${sessionScope.LoginActionForm.nguoiDung.ten} (<a href="logout.do">Đăng xuất</a>)
            </logic:present>
            <logic:notPresent name="LoginActionForm" property="nguoiDung">
                <a href="javaScript: showHidePopup('dangnhapFormPopup','block');">Đăng nhập</a>
                |
                <a href="javaScript: showHidePopup('popupRegister','block');">Đăng kí</a>
            </logic:notPresent>
        </div>

        <div id="wrapper">
            <div id="header">
                <div id="logo">
                    <h1><a href="#">Nhà Đất</a></h1>
                </div>
                <div id="menu">
                    <ul>
                        <li><a href="homepage.do">Trang Chủ</a></li>
                        <li class="first current_page_item"><a href="tinHot.do">Tin Nổi Bật</a></li>
                        <li><a href="tinmoi.do">Tin Mới</a></li>
                        <li><a href="#">Thông Tin Cty</a></li>
                        <li class="last"><a href="#"><a href="javaScript: showHidePopup('lienhe','block');">Liên Hệ</a></a></li>
                    </ul>
                    <br class="clearfix" />
                </div>
            </div>
            <logic:present name="LoginActionForm" property="nguoiDung">
                <div style="margin-left:800px">
                    <a href="taotindang.do">Đăng Tin</a> | <a href="quanlytindang.do">Quản Lý Tin Đăng</a>
                </div>
            </logic:present>

            <div id="page">

                <div id="contentNew2">
                    <div class="box">



                        <div style="border:1px solid black; padding-left:10px; padding-bottom:10px; padding-top:10px ">
                            <center>
                                <h3>Tin Xem Nhiều Nhất</h3><br/>
                                <hr/>
                            </center>
                            <div style="margin-left: 100px"
                                 <c:import url="xsl/tinHot_2.xsl" var="xslt" charEncoding="UTF-8"/>
                                 <c:import url="xml/Tindang.xml" var="xml" charEncoding="UTF-8"/>
                                 <x:transform xml="${xml}" xslt="${xslt} "/>
                        </div>


                    </div>
                </div>

            </div>
        </div>
    </div>
    <script type="text/javascript">
        tabview_initialize('TabView');
    </script>
</body>
</html>
